<?php 
	echo $html->css( 'jquery-ui-1.8.16.custom.css' );
	$javascript->link( array( 'jquery/jquery-1-6-4', 'schedules/create' ), false );
?>

<h1>Mi Calendario</h1>

<p class="marginT marginB" >
	Defina aqui todas las actividades que usted realiza en su dia a dia, con el fin de que nuestro sistema sea capaz de determinar su tiempo libre y tiempo de trabajo
</p>

<?php 
	echo $form->create( 'Schedule' );
		
		echo '<a href="#" id="addOtherActivity">Agregar Otra Actividad</a>';
		
		echo '<div class="clear"></div>';
		
		
		echo '<div class="schedule" >';
			
			echo "<a href='#' style='display:none;' class='removeSchedule'>Remover</a>";
			
			echo $form->input( 'Schedule.1.name', array( 'class' => 'scheduleName', 'label' => 'Nombre de Actividad' ) );
			echo $form->input( 'Schedule.1.description', array( 'class' => 'scheduleDescription',  'label' => 'Descripcion' ) );

			echo '<div class="daySelector">';
			echo	'<p><b>Horario</b></p>';
				
				echo $form->input( 'Schedule.1.monday', array( 'class' => 'scheduleMonday', 'type' => 'checkbox', 'label' => 'L' ) );
				echo $form->input( 'Schedule.1.tuesday', array( 'class' => 'scheduleTuesday', 'type' => 'checkbox', 'label' => 'Ma' ) );
				echo $form->input( 'Schedule.1.wednesday', array( 'class' => 'scheduleWednesday', 'type' => 'checkbox', 'label' => 'Mi' ) );
				echo $form->input( 'Schedule.1.thursday', array( 'class' => 'scheduleThursday', 'type' => 'checkbox', 'label' => 'J' ) );
				echo $form->input( 'Schedule.1.friday', array( 'class' => 'scheduleFriday', 'type' => 'checkbox', 'label' => 'V' ) );
				echo $form->input( 'Schedule.1.saturday', array( 'class' => 'scheduleSaturday', 'type' => 'checkbox', 'label' => 'S' ) );
				echo $form->input( 'Schedule.1.sunday', array( 'class' => 'scheduleSunday', 'type' => 'checkbox', 'label' => 'D' ) );

				echo '<div class="floatL">';
					echo 'Desde: ';
					echo $form->select( 'Schedule.1.start_time_hour', array( '01','02','03','04','05','06','07','08','09',10,11,12,13,14,15,16,17,18,19,20,21,22,23,'00' ),  11, array( 'class' => 'scheduleStartTimeHour' ) );
					echo '-';
					echo $form->select( 'Schedule.1.start_time_minute', array( '00','01','02','03','04','05','06','07','08','09',10,11,12,13,14,15,16,17,18,19,20,21,22,23, 24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60 ), 0, array( 'class' => 'scheduleStartTimeMinute' ) );
				echo '</div>';
					
				echo '<div class="marginL floatL">';
					echo 'Hasta: ';
					echo $form->select( 'Schedule.1.end_time_hour', array( '01','02','03','04','05','06','07','08','09',10,11,12,13,14,15,16,17,18,19,20,21,22,23,'00' ),  11, array( 'class' => 'scheduleEndTimeHour' ) );
					echo '-';
					echo $form->select( 'Schedule.1.end_time_minute', array( '00','01','02','03','04','05','06','07','08','09',10,11,12,13,14,15,16,17,18,19,20,21,22,23, 24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60 ), 0, array( 'class' => 'scheduleEndTimeMinute' ) );
				echo '</div>';
			
				
			echo '</div>';
				
			echo '<div class="clear"></div>';
			
			echo $form->input( 'Schedule.1.is_bussy', array( 'type' => 'checkbox', 'label' => 'No disponible durante esta actividad', 'class' => 'scheduleIsBussy', 'checked' => 'checked' ) );
		
		echo '</div>';
		
		echo '<div class="clear"></div>';
		
		echo '<a href="#" id="addOtherActivity">Agregar Otra Actividad</a>';
		
	echo $form->end( 'Salvar' );
?>